// app 初始化 api
export const AppInitDataApi = `/init/appInitData/v1`

// 系统信息
export const SystemInfo = uni.getSystemInfoSync()

// 获取系统类型
export function getOsType() {
	let OsType = null
	return (function() {
		if (OsType) {
			return OsType
		} else {
			return SystemInfo.osName == 'android' ? 0 : 1
		}
	})()

}

// 获取版本信息
export function getAppVersion() {
	let appVersion = null
	return (function() {
		if (appVersion) {
			return appVersion
		} else {
			return SystemInfo.appVersion
		}
	})()

}

export function getOsversion() {
	let osVersion = null
	return (function() {
		if (osVersion) {
			return osVersion
		} else {
			return SystemInfo.osVersion
		}
	})()
}


const STORAGE_OPTIONS = {
	namespace: 'pro__', // key prefix
	name: 'ls', // name variable Vue.[ls] or this.[$ls],
	storage: 'local', // storage name session, local, memory
}

export default STORAGE_OPTIONS;
